package com.jt.www.admin.stats.service.impl;

import com.jt.www.admin.stats.service.YnInsuredService;
import com.jt.www.enums.ResultEnum;
import com.jt.www.model.reps.ResultDTO;
import com.jt.www.model.vo.stats.yunnan.YnInsuredParamVO;
import com.jt.www.model.vo.stats.yunnan.YnInsuredResultSummaryVO;
import com.jt.www.model.vo.stats.yunnan.YnInsuredResultVO;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * @author admin_ltf
 * @create 2019-05-15 11:33
 */
@Service
public class YnInsuredServiceImpl implements YnInsuredService {

    @Override
    public ResultDTO searchYNIsuredInfo(YnInsuredParamVO ynInsuredParamVO) {
//        YnInsuredResultVO
        List<YnInsuredResultVO> list = new ArrayList<>();
        YnInsuredResultVO vo = new YnInsuredResultVO();
        list.add(vo);
        YnInsuredResultSummaryVO svo = new YnInsuredResultSummaryVO();
        svo.setInsSchool("合计");
        HashMap map = new HashMap<String, Object>();
        map.put("resultList", list);
        map.put("summaryVo", svo);
        return new ResultDTO(ResultEnum.SUCCESS, map);
    }

//    @Override
//    public ResultDTO searchYNCaseInfo(YnCaseParamVO ynCaseParamVO) {
//
////        不需要  合计  返回list即可
////        YnCaseResultVO
//        List<YnCaseResultVO> list = new ArrayList<>();
//        YnCaseResultVO vo = new YnCaseResultVO();
//        list.add(vo);
//        HashMap map = new HashMap<String,Object>();
//        map.put("resultList",list);
//        return new ResultDTO(ResultEnum.SUCCESS,map);
//    }
}
